![]() |
SetCollectionItemInfo |
||||
Header: | Collections.h | Carbon status: | Supported | |
Edits the attributes of a specific collection item given the item’s collection tag and collection ID.
OSErr SetCollectionItemInfo ( Collection c, CollectionTag tag, SInt32 id, SInt32 whichAttributes, SInt32 newAttributes );
A reference to the collection object containing the item whose attributes you want to edit. The behavior of this function is undefined if you do not provide a reference to a valid collection object.
The collection tag associated with the item whose attributes you want to edit.
The collection ID associated with the item whose attributes you want to edit.
A mask indicating which attributes you want to edit.
An SInt32 word containing the new settings for the attributes.
A result code.
This function copies bit values from the newAttributes parameter to the attributes associated with the specified item.
This function uses the whichAttributes parameter to determine which bits to copy. For every bit in the whichAttributes parameter, this function takes one of two actions:
The whichAttributes parameter allows you to change the values of specific bits in the specified item’s attributes without affecting the values of other bits.
To obtain information about a collection item using the collection index to specify the item, use the SetIndexedCollectionItemInfo function.
Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)